package com.study.pointcut;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class PointcutApplication {

	public static void main(String[] args) {
		SpringApplication.run(PointcutApplication.class, args);
	}
	
	@RequestMapping("/")
	public String index(@RequestParam(name="a",required=false)String a) {
		return "wellcome";
	}
	
	@RequestMapping("/b")
	@MyAn
	public String b(@RequestParam(name="b",required=false)String b)
	{
		return "the second method";
	}
	
}
